<!--综合查询-单站项目-->
<template>
  <t-collapse title="项目验收信息">
    <TForm ref="enteringForm" :form="formData" :form-options="formOptions" :yanfa="getYanFa" :serviceShow="getShowThree"/>
    <accButton :prj-id="prjId" :btn-list="btnOptions" v-if="!(getxianchaiShow || getShowThree)"/>
  </t-collapse>
</template>
<script>
import TForm from '../form/index.vue'
import accButton from '@/views/acceptance/components/accButton.vue';
import { Mixins } from "@/views/acceptance/components/minix";
export default {
  components: {
    accButton,
    TForm
  },
  mixins: [Mixins],
  data() {
    return {
      formList: ['realStartTime', 'realEndTime', 'endInternalAcceptDate', 'jiaofuApplicationDate', 'endYiDongInstallDate', 'endLianTongInstallDate', 'endDianXinInstallDate', 'endYiDongInstallDate2', 'endLianTongInstallDate2', 'endDianXinInstallDate2', 'resourceInTime', 'resourceConfirmTime', 'maintainDate'],
      btnList: ['serviceShow', 'costSheet', 'panorama']
    }
  },
  computed: {
    getxianchaiShow(){
      return this.newPrjDetail.isNewBusiness === '0'&&this.newPrjDetail.businessMajor==='04'&&this.newPrjDetail.buildModes==='27'
    },
    // 研发项目
    getYanFa() {
      return this.newPrjDetail.manageMode === '01' && this.newPrjDetail.prjType === 'Y'
    },
    // 软件开发 服务成本
    getShowThree() {
      return this.newPrjDetail.manageMode === '01' && this.newPrjDetail.prjType === 'W' && this.newPrjDetail.buildModes === '25' && this.newPrjDetail.isSingleAccounting === '1'
    },
  },
  created(){
    this.formList = this.getYanFa || this.getShowThree?['endInternalAcceptDate']:this.formList
  },
}
</script>
<style scoped lang='scss'></style>
